package com.sky.service;

import com.sky.dto.*;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

public interface OrderService {
    Result<OrderSubmitVO> submit(OrdersSubmitDTO dto) throws Exception;

    Result<PageResult> historyOrders(OrdersPageQueryDTO dto);

    Result<OrderVO> orderDetail(Long id);

    Result cancel(Long id);

    Result repetition(Long id);

    /**
     * 管理端历史订单查询
     * @param dto
     * @return
     */
    Result<PageResult> conditionSearch(OrdersPageQueryDTO dto);

    Result<OrderStatisticsVO> statistics();

    Result<OrderVO> details(Long id);

    Result updateStatus(OrdersConfirmDTO dto);

    Result delivery(Long id);

    Result cancel(OrdersCancelDTO dto);

    Result rejection(OrdersRejectionDTO dto);

    Result complete(Long id);

    Result reminder(Long id);

}
